﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Zor_Modes;
using Zor_Tools;
using Zor_Bll;
using Newtonsoft.Json.Linq;

namespace Zor_API.Controllers
{
    public class RentingInfoController : ApiController
    {
        
        /// <summary>
        /// 获取用户租房信息
        /// </summary>
        /// <param name="ri"></param>
        /// <returns></returns>
        [HttpPost]
        public List<RentingInfo> RentingInfoList([FromBody]RentingInfo ri)
        {
            return RentingInfo_Bll.GetRentingInfoList(ri.Tenant_Name, ri.Tenant_IDNumber);
        }

    }
}
